package cclub.demo.utils;

import com.fasterxml.jackson.databind.ObjectMapper;

public class jsonUtils {

    public static String getJson(Object object){
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            return objectMapper.writeValueAsString(object);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "";
    }
}
